function net_content = rmLayer(net_content, layer_nmae)

[ii, jj] = mycaffe.net.getLayer(net_content, layer_nmae);
if isempty(ii)
    warning('Sorry, "%s" is not found!', layer_nmae);
end

idxList = cell(1, length(ii));
for k = 1 : length(ii)
    idxList{k} = ii(k) : jj(k);
end
net_content([idxList{:}]) = [];

return
